package com.bzm.common.entity;

import com.bzm.common.global.GlobalConfig;

import lombok.Data;

/**
 * @Description:TODO
 * @author hemiao
 * @time:2020年1月31日 下午3:25:13
 */
@Data
public class TotalResult<T> {
	
	/**
	 * 返回数据
	 */
    private T data;
	
	/**
     * 总数量
     */
    private Long total;
    
    /**
     * 总页数
     */
    private int pages;
    
    private String fileService;
    
    public TotalResult(T data,Long total,int pages) {
        this.data = data;
        this.total=total;
        this.pages=pages;
        this.fileService = GlobalConfig.FILE_SERVICE_LOCATION;
    }

}
